/**
 * @file main.cpp
 * @brief
 * @author fhx (1805066231@qq.com)
 * @date 2022-07-23
 *
 * @copyright Copyright (C) 2022, HITCRT_VISION, all rights reserved.
 *
 * @par 修改日志:
 * <table>
 * <tr><th>Date       <th>Author  <th>Description
 * <tr><td>2022-07-23 <td>fhx  <td>
 * </table>
 */
#include <iostream>
using namespace std;
int main() {
    int a, b, c;
    cout << "请输入工业相机A的价格：" << endl;
    cin >> a;
    if (a <= 0) {
        cout << "error!请重新输入：" << endl;
        cin >> a;
    }
    cout << "请输入工业相机B的价格：" << endl;
    cin >> b;
    if (b <= 0) {
        cout << "error!请重新输入：" << endl;
        cin >> b;
    }
    cout << "请输入工业相机C的价格：" << endl;
    cin >> c;
    if (c <= 0) {
        cout << "error!请重新输入：" << endl;
        cin >> c;
    }
    if (a > b) {
        if (a > c) {
            cout << "A的价格最贵" << endl;
        } else if (a < c) {
            cout << "C的价格最贵" << endl;
        } else {
            cout << "A和C的价格最贵" << endl;
        }
    } else if (a < b) {
        if (b > c) {
            cout << "B的价格最贵" << endl;
        } else if (b < c) {
            cout << "C的价格最贵" << endl;
        } else {
            cout << "B和C的价格最贵" << endl;
        }
    } else {
        if (a > c) {
            cout << "A和B的价格最贵" << endl;
        } else if (a < c) {
            cout << "C的价格最贵" << endl;
        } else {
            cout << "三者价格最贵" << endl;
        }
    }

    system("pause");
    return 0;
}